package com.hanson.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hanson.pojo.vo.GoodsSellPointParameter;

import java.io.Serializable;

/**
 * <p>
 * 商品参数卖点表 服务类
 * </p>
 *
 * @author HansonLee
 * @since 2021-01-08
 */

public interface IGoodsSellPointParameterService extends IService<GoodsSellPointParameter> {


    /**
     *
     * 分页查询goodsSellPointParameter
     *
     * @param condition    数据筛选条件
     * @param page      分页对象
     * @return {@link Page< GoodsSellPointParameter>}      传进来的分页对象，封装了查询数据结果集
     * @author HansonLee
     * @date 2021-01-08
     **/
    public Page<GoodsSellPointParameter> list(String condition, Page<GoodsSellPointParameter> page);

    /**
     *
     * 添加新goodsSellPointParameter
     *
     * @param goodsSellPointParameter      需要添加的goodsSellPointParameter
     * @return {@link Object}
     * @author HansonLee
     * @date 2021-01-08
     **/
    public Object add(GoodsSellPointParameter goodsSellPointParameter);

    /**
     *
     * 根据条件更新goodsSellPointParameter
     *
     * @param condition     新数据以及更新条件，使用goodsSellPointParameter实体类封装
     * @return {@link Object}
     * @author HansonLee
     * @date 2021-01-08
     **/
    public Object update(GoodsSellPointParameter condition);

    /**
     *
     * 根据条件删除goodsSellPointParameter
     *
     * @param condition     删除条件，使用goodsSellPointParameter实体类封装
     * @return {@link Object}
     * @author HansonLee
     * @date 2021-01-08
     **/
    public Object delete(GoodsSellPointParameter condition);

    /**
     *
     * 根据id删除goodsSellPointParameter
     *
     * @param id     删除条件，需要删除的id
     * @return {@link Object}
     * @author HansonLee
     * @date 2021-01-08
     **/
    public Object deleteById(Serializable id);
}
